package com.szp.pgyer

import android.app.Application
import android.content.Context
import com.pgyer.pgyersdk.PgyerSDKManager

class MyApplication : Application() {

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        initPgyerSdk(this)
    }

    /**
     * 初始化蒲公英sdk
     */
    private fun initPgyerSdk(myApplication: MyApplication) {
        PgyerSDKManager.Init().setContext(myApplication).start()
    }
}